import { defineStore } from "pinia"
import {type RouteRecordRaw} from "vue-router"
export const userMenuStore = defineStore("menuStore",{
  state: () => {
    return {
      menuList: [] as Array<RouteRecordRaw>
    }
  },
  actions: {
    SET_MENU(menu:Array<RouteRecordRaw>){
      this.menuList = menu
    },
    getters:{
      GetMenu(state:any){
        return state.menuList
      }
    }
  }
})
